﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBACProject.Domian
{
    /// <summary>
    /// 用户基本信息
    /// </summary>
    [Table("UserModel")]
    public class UserModel : Audti
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Key]
        public int UserId { get; set; }  

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }  

        /// <summary>
        /// 全名（姓名）
        /// </summary>
        public string FullName { get; set; }    

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }   

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }  

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }  

        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime? LoginTime { get; set; }=DateTime.Now;

        /// <summary>
        /// 登录IP
        /// </summary>
        public string LoginIP { get; set; } = "127.0.0.1";
    }
}
